package com.eu.ebpm.engine.entity.deploy;

import java.io.Serializable;

import com.eu.ebpm.engine.express.Express;
import com.fasterxml.jackson.annotation.JsonIgnore;

/**
 * 
 * 类名称: Transfer
 * 类描述: 
 * @author 王晓华
 * @since 2015-1-22 下午09:48:38
 * @version v1.0
 */
public class Transfer implements Serializable {

	private static final long serialVersionUID = 1L;

	private String name;
	
	private String desc;
	
	private Long fromMissionId;
	
	private Long toMissionId;
	
	private String express;
	
	//关联信息
	@JsonIgnore
	private Mission fromMission;
	@JsonIgnore
	private Mission toMission;
	@JsonIgnore
	private Express expressCondition;

	public Transfer() {
	}

	public Transfer(String name, String desc, long fromMissionId, long toMissionId,
			String express) {
		this.name = name;
		this.desc = desc;
		this.fromMissionId = fromMissionId;
		this.toMissionId = toMissionId;
		this.express = express;
	}

	public Long getToMissionId() {
		return toMissionId;
	}

	public void setToMissionId(long toMissionId) {
		this.toMissionId = toMissionId;
	}

	public Long getFromMissionId() {
		return fromMissionId;
	}

	public void setFromMissionId(long fromMissionId) {
		this.fromMissionId = fromMissionId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Mission getFromMission() {
		return fromMission;
	}

	public void setFromMission(Mission fromMission) {
		this.fromMission = fromMission;
	}

	public Mission getToMission() {
		return toMission;
	}

	public void setToMission(Mission toMission) {
		this.toMission = toMission;
	}

	public String getExpress() {
		return express;
	}

	public void setExpress(String express) {
		this.express = express;
	}

	public Express getExpressCondition() {
		return expressCondition;
	}

	public void setExpressCondition(Express expressCondition) {
		this.expressCondition = expressCondition;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	@Override
	public String toString() {
		return "Transfer [name=" + name + ", desc=" + desc + ", fromMissionId=" + fromMissionId + ", toMissionId=" + toMissionId + ", express=" + express + ", fromMission=" + fromMission
				+ ", toMission=" + toMission + ", expressCondition=" + expressCondition + "]";
	}
	
}
